package PDFd.Layer;

import android.view.MotionEvent;

/**
 * Allows a layer to recieve motion events. Implement this if you want your layer to be given motion events
 * @author mckaym
 *
 */
public interface LayerMotionEvent {
	/**
	 * Notifies the layer of a motion event. This MAY give you motion events outside your layer,
	 * so pay attention!
	 * @param ev The event
	 */
	public void motionEvent(MotionEvent ev);
	/**
	 * Sets the offset the 0,0 of the screen is from the original 0,0
	 * @param offset
	 */
	public void setViewOffset(Point offset);
	/**
	 * Sets the layer's scale factor.
	 * @param factor
	 */
	public void setScaleFactor(float factor);
}
